package com.xiaoge;

import com.xiaoge.system.mapper.UserMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("com.xiaoge.system.mapper")
//开启SwaggerUI
@EnableSwagger2
@ServletComponentScan
//启动定时任务
@EnableScheduling
public class XinGuanApplication {

    public static void main(String[] args) {
        System.out.println("打印成功");
        SpringApplication.run(XinGuanApplication.class,args);
    }

    /**
     * 在ioc容器中注入一个bean
     * @return
     * 1
     * 2
     * userA
     * userB*/



}
